package algorithm;

public class CharDemo {
    public static void main(String[] args) {
        String s = "hello9";
        int index = 0;
        while(true){
            char a = s.substring(index,index+1).charAt(0);
            System.out.println(">"+s.substring(index)+"|"+index+","+(index+1));
            System.out.println(s.substring(index,index+1)+"|"+a+"|"+a*1+"|"+(a*1-48));
            if (index >= s.length() -1){
                break;
            }
            index++;
        }
    }
}
